/**
 * cn.ucox.web.application.config.ApplicationContextConfig
 * author:chenw
 * create: 16/2/3.12:06
 * email:javacspring@hotmail.com
 */

package cn.com.oceansoft.application.config;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.FilterType;
import org.springframework.context.annotation.Import;
import org.springframework.stereotype.Controller;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import javax.sql.DataSource;

/**
 * 应用程序配置
 *
 * @author chenw
 * @time 16/2/3 12:06
 * @email javacspring@gmail.com
 */
//@Configuration
//@Import({AppConfig.class, DataSourceConfig.class})
//@ComponentScan(
//        basePackages = "cn.com.oceansoft.modules.**.impl.",
//        includeFilters = {@ComponentScan.Filter(type = FilterType.ANNOTATION, value = Service.class)},
//        excludeFilters = {@ComponentScan.Filter(type = FilterType.ANNOTATION, value = Controller.class),
//                @ComponentScan.Filter(type = FilterType.ANNOTATION, value = Repository.class)})

public class ServiceConfig {

    @Resource
    private DataSource dataSource;


}
